package com.ctg.itrdc.imageconsole.data.dao;


import com.ctg.itrdc.imageconsole.data.entity.DockerMicroGroup;
import com.ctg.itrdc.paspsdk.data.dao.IBaseCacheDao;
import com.ctg.itrdc.paspsdk.data.dao.IBaseDao;

public interface IDockerMicroGroupDao extends IBaseCacheDao, IBaseDao {

	public Long insert(String tenantCode, String k8sCode, String keyCode);

	
	 /* 
	  * why it does not return list<DockerMicroGroup> ?  
	  * because tenantCode + k8sCode + groupCode is a logic key, so it should return at most one record
	  *	and it could be called many times, if it returns list, each of its caller need do checking
	  */
	public DockerMicroGroup selectByK8sCodeAndGroupCode(String k8sCode, String groupCode);


	public DockerMicroGroup selectById(Long id);


	public void updateGroupCode(Long id, String groupCode);

	
	
	
}
